package com.yc.sole.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.Data;

/**
 * 对象
 *
 * @author yizuomin
 * @date 2023-03-26
 **/
@Data
@Entity
@Table(name = "sys_role_menu")
@TableName(value = "sys_role_menu")
public class RoleMenu {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 角色id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '角色id'")
    private Long roleId;
    /**
     * 菜单id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '菜单id'")
    private Long menuId;

}
